import axios from '@/utils/axios'
import moment from "moment";

export function getEmpPieceList(params) {
  return axios({
    url: '/EmpPiece/page',
    method: 'get',
    data: params
  })
}

export function getOnePieceList(params) {
  return axios({
    url: '/EmpPiece/list',
    method: 'post',
    data: params
  })
} 

export function addOnePiece(params) {
  return axios({
    url: '/EmpPiece/add',
    method: 'post',
    data: params
  })
} 

export function deleteOnePiece(params) {
  return axios({
    url: '/EmpPiece/delete',
    method: 'post',
    data: params
  })
}

export function updateOnePiece(params) {
  return axios({
    url: '/EmpPiece/updateOne',
    method: 'post',
    data: params
  })
}

export function reDelete(params) {
  return axios({
    url: '/EmpPiece/reDelete',
    method: 'post',
    data: params
  })
}

export function getSecondBack(params) {
  return axios({
    url: '/EmpPiece/secondBack',
    method: 'post',
    data: params
  })
}

export function getEmpPieceNowPage(params) {
  return axios({
    url: '/EmpPiece/nowPage',
    method: 'get',
    data: params
  })
}

export function getEmpPiecePastPage(params) {
  return axios({
    url: '/EmpPiece/pastPage',
    method: 'get',
    data: params
  })
}

export function getEmpPieceNowSearch(params) {
  return axios({
    url: '/EmpPiece/nowSearch',
    method: 'get',
    data: params
  })
}

export function getEmpPiecePastSearch(params) {
  return axios({
    url: '/EmpPiece/pastSearch',
    method: 'get',
    data: params
  })
}

export function search(params) {
  return axios({
    url: '/EmpPiece/Search',
    method: 'get',
    data: params
  })
}

